package cn.mes.module.mes.controller.admin.basemachineinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 机台产线基础信息新增/修改 Request VO")
@Data
public class BaseMachineInfoSaveReqVO {

    @Schema(description = "机台信息ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10333")
    private String id;

    @Schema(description = "机台区域代码")
    private String machineAreaCode;

    @Schema(description = "机台区域")
    private String machineArea;

    @Schema(description = "机台名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "机台名称不能为空")
    private String machineName;

    @Schema(description = "机台代码")
    private String machineCode;

    @Schema(description = "机台参数")
    private String machineProperty;

    @Schema(description = "机台品牌")
    private String machineBrand;

    @Schema(description = "PLC编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23509")
    @NotEmpty(message = "PLC编号不能为空")
    private String machinePlcId;

    @Schema(description = "项目编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30217")
    @NotEmpty(message = "项目编号不能为空")
    private String projectId;

    @Schema(description = "区域编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30674")
    @NotEmpty(message = "区域编号不能为空")
    private String regionId;

    @Schema(description = "是否有电子秤", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否有电子秤不能为空")
    private Boolean hasWeight;

    @Schema(description = "电子秤数量")
    private Integer weightNum;

    @Schema(description = "是否用于人力排班", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否用于人力排班不能为空")
    private Boolean isScheduling;

    @Schema(description = "是否是机台", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否是机台不能为空")
    private Boolean isMachine;

    @Schema(description = "显示顺序")
    private Integer orderNo;

    @Schema(description = "车间ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29017")
    @NotEmpty(message = "车间ID不能为空")
    private String workShopId;

    @Schema(description = "区域ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25712")
    @NotEmpty(message = "区域ID不能为空")
    private String machineAreaId;

}